package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderDetailMapper;
import com.ktgj.other.domain.RcOrderDetail;
import com.ktgj.other.service.IRcOrderDetailService;

/**
 * 专车订单详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderDetailServiceImpl implements IRcOrderDetailService 
{
    @Autowired
    private RcOrderDetailMapper rcOrderDetailMapper;

    /**
     * 查询专车订单详情
     * 
     * @param rcorderid 专车订单详情ID
     * @return 专车订单详情
     */
    @Override
    public RcOrderDetail selectRcOrderDetailById(Long rcorderid)
    {
        return rcOrderDetailMapper.selectRcOrderDetailById(rcorderid);
    }

    /**
     * 查询专车订单详情列表
     * 
     * @param rcOrderDetail 专车订单详情
     * @return 专车订单详情
     */
    @Override
    public List<RcOrderDetail> selectRcOrderDetailList(RcOrderDetail rcOrderDetail)
    {
        return rcOrderDetailMapper.selectRcOrderDetailList(rcOrderDetail);
    }

    /**
     * 新增专车订单详情
     * 
     * @param rcOrderDetail 专车订单详情
     * @return 结果
     */
    @Override
    public int insertRcOrderDetail(RcOrderDetail rcOrderDetail)
    {
        return rcOrderDetailMapper.insertRcOrderDetail(rcOrderDetail);
    }

    /**
     * 修改专车订单详情
     * 
     * @param rcOrderDetail 专车订单详情
     * @return 结果
     */
    @Override
    public int updateRcOrderDetail(RcOrderDetail rcOrderDetail)
    {
        return rcOrderDetailMapper.updateRcOrderDetail(rcOrderDetail);
    }

    /**
     * 批量删除专车订单详情
     * 
     * @param rcorderids 需要删除的专车订单详情ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderDetailByIds(Long[] rcorderids)
    {
        return rcOrderDetailMapper.deleteRcOrderDetailByIds(rcorderids);
    }

    /**
     * 删除专车订单详情信息
     * 
     * @param rcorderid 专车订单详情ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderDetailById(Long rcorderid)
    {
        return rcOrderDetailMapper.deleteRcOrderDetailById(rcorderid);
    }
}
